﻿@model IEnumerable<DFYE.Web.Models.studentClass>
@using JULONG.WEB.Library
@{
    ViewBag.Title = "Index";
}
@{
    ViewBag.Title = "文档";
    paging paging = new paging();
    paging.pageSize = 15;
    dynamic pagingMode;
    var vModel = paging.content(
        Model.OrderBy(d => d.name),
        out pagingMode, Html.getRoute("page").As<int>()
        );
    ViewBag.paging = pagingMode;
}
<h2>Index</h2>

<p>
    @Html.ActionLink("新建", "Create")
</p>
<table>
    <tr>
        <th>
            name
        </th>
        <th>
            bak
        </th>
        <th>
            able
        </th>
        <th></th>
    </tr>

@foreach (var item in Model)
{
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.bak)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.able)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id = item.ID }) |
            @Html.ActionLink("Details", "Details", new { id = item.ID }) |
            @Html.ActionLink("Delete", "Delete", new { id = item.ID })
        </td>
    </tr>
}

</table>
@Html.Partial("paging", new { action = "Index" })